﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.Service.sys.Msg.Dto/SysMsgUserDto 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       SysMsgUserDto
* 创建时间：  2025/6/4 11:12:19
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using SSPivot.Admin.Core.Service.sys.User.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.Service.sys.Msg.Dto
{

    public class SysMsgUserDto
    {
        /// <summary>
        /// 消息Id
        /// </summary>
        public long MsgId { get; set; }

        /// <summary>
        /// 消息
        /// </summary>               
        public SysMsgDto? Msg { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 用户
        /// </summary>

        public SysUserDto? User { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        /// <summary>
        /// 已读时间
        /// </summary>
        public DateTime? ReadTime { get; set; }

        /// <summary>
        /// 是否重要
        /// </summary>
        public bool IsImportant { get; set; }
    }
    public class SysMsgUserListDto
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string? Mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        /// <summary>
        /// 已读时间
        /// </summary>
        public DateTime? ReadTime { get; set; }
    }
    // <summary>
    /// 添加消息用户列表
    /// </summary>
    public class SysMsgUserListAddDto
    {
        /// <summary>
        /// 消息
        /// </summary>
        [Required(ErrorMessage = "请选择消息")]
        public long MsgId { get; set; }

        /// <summary>
        /// 用户
        /// </summary>
        public long[] UserIds { get; set; }
    }

    public class QuerySysMsgUserRequest
    {
        public long? MsgId { get; set; }

        public string? Name { get; set; }

    }

    public class SiteMsgContentDto
    {
        /// <summary>
        /// 消息Id
        /// </summary>
        public long MsgId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string? TypeName { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 接收时间
        /// </summary>
        public virtual DateTime? ReceivedTime { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool? IsRead { get; set; }
    }
    public class SiteMsgPageDto
    {
        /// <summary>
        /// 唯一Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 消息Id
        /// </summary>
        public long MsgId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 类型Id
        /// </summary>
        public long TypeId { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool? IsRead { get; set; }

        /// <summary>
        /// 接收时间
        /// </summary>
        public virtual DateTime? ReceivedTime { get; set; }
    }
    public partial class QuerySiteMsgRequest
    {
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool? IsRead { get; set; }

        /// <summary>
        /// 分类Id
        /// </summary>
        public long? TypeId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
    }
}
